<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<title>首页</title>
		<meta charset="utf-8" />
		<meta name="keywords" content="" />
	    <meta name="description" content="" />
		<link rel="stylesheet" href="CSS/style.css" />
		<script type="text/javascript" src="JS/jquery-1.7.2.min.js" ></script>
		<script type="text/javascript" src="JS/index.js" ></script>
	</head>
	<body>
	<!-- header -->
<header>
			<div class="headcon">
				<div class="logo"><a href=""><img src="IMG/logo.png" /></a></div>
				<div class="lang">
				
				<!-- 中文 -->
					<div class="ch">
						<a href="../"><p><img src="IMG/CH.jpg"/></p>
						<p>中文版</p></a>
					</div>
				<!-- 中文 END-->
					
					<!-- 英文 -->
					<div class="en">
						<a href="URL"><p><img src="IMG/EN.jpg"/></p>
						<p>ENGLISHI</p></a>
					</div>
				<!-- 英文 END-->
					
				</div>
			</div>
			
		</header>
		

		<nav>
			<div class="navcon">
				<ul>
					<li><a href="<?php echo U('/'); ?>">HOME</a></li>
					
					<!-- 循环nav -->

					 <?php foreach (term('2')['child']['nav'] as $key => $termVo) {?>
				 

				 <!-- 循环一级导航 -->
				<?php if($termVo['flag'] == 'job'): ?>
			    <li><a href="<?php echo term(13)['url']; ?>"><?php echo $termVo['name']; ?></a>
				<?php else: ?>
				<li><a href="<?php echo $termVo['url']; ?>"><?php echo $termVo['name']; ?></a>
				<?php endif; ?>
					
					
					<!-- 判断是否有子栏目 -->
				<?php if(!empty($termVo['child']['list'])){ ?>
						<div class="subnav">
							<div class="subleft">
								<ul>
								<!-- 循环二级导航 -->
								<?php foreach (term($termVo['id'])['child']['nav'] as $termVochild) {?>
								    
							
									
									<li><a href="<?php echo $termVochild['url']; ?>"><?php echo $termVochild['name']; ?></a></li>
									
									
									<?php  } ?>
                                <!-- 循环二级导航 -->
								</ul>
							</div>
							<div class="subright">
							
							 <?php foreach (term(26)['content'] as $key => $value) {?>
								<p class="im"><img src="UPLOADS/<?php echo $value['cover_img']; ?>" /></p>
								<p><span style="color: #0064b2;"></span><?php echo msubstr($value['description'],0,120,'utf-8',true); ?></p>

                               <?php } ?>
							</div>
						</div>
				<?php } ?> 	
					</li>
					 <!-- 循环一级导航 END-->
					 <?php  } ?>
					 
					 
					<!-- 循环nav END-->

				</ul>
			</div>
		</nav>
		
		
		<!-- 轮播图片 -->
		<div class="m_banner">
		     <?php foreach ($links['1'] as $key => $value) {?>
			<div class="banner b1" style=" background-image:url(UPLOADS/<?php echo $value['logo']; ?>);" id="banner1"></div>
			 <?php } ?>
			 
	        <!-- <div class="banner b2" style=" background-image:url(IMG/ban1.jpg);display:none;" id="banner2"></div> -->
	        
	        <div class="banner_ctrl"> <a href="#" class="prev" title=""></a> <a href="javascript:;" class="next" title=""></a> </div>
		</div>
		<!-- 轮播图片 END-->
		
	
	
		<div class="sycon">
		
		
 		<!-- 产品中心 -->
			<div class="procon">
				<div class="protit"><img src="IMG/protit.png" /></div>
				<div class="protrt">
					Company set up under the dedicated research and development, production and sales of four institutions, respectively: Beijing Qingyuan protection without pollution pesticide research center, Inner Mongolia Qingyuan Bao Biotechnology Co., Ltd. (production base), processing enterprises in Beijing and Beijing Qingyuan insurance marketing center. Independent patent products "bitter 0.3% matrine agent" (patent number: ZL? 95 1 95_1_18353.2 International Patent Classification of the main number: a01n 65/00) the first obtained green food center AA production data authentication LSSZ0199010501AA, production enterprises - Inner Mongolia Qingyuan Bao bio technology have limited company, has recently through OFDC organic processors certification: (P3103-915-177-2002).
				</div>
			</div>
			<!-- 产品中心 END-->
			
			<div class="blk_jk"> 
				<a class="LeftBotton" onmousedown="SL_GoUp_1()" onmouseup="SL_StopUp_1()" onmouseout="SL_StopUp_1()" href="javascript:void(0);" target="_self">
				<img src="IMG/zleft.png"/>
				</a>
				  <div class="pcont" id="SISL_Cont_1">
				    <div class="ScrCont">
					
					
				      <div id="SList1_1">
				        <!-- piclist begin -->
						 <?php foreach (getObj('search',6)['rec'] as $key => $value) {?>
				        <a class="pl" href="<?php echo $value['url']; ?>" >
				        <div class="jkbox">
				        <p class="im"><img src="UPLOADS/<?php echo $value['cover_img']; ?>" alt="" /></p>
				        <p class="plit"><span>
						<!-- name -->
						<?php echo $value['name']; ?>
						</span></p>
				        <p class="plit2"></p>
				        <p class="more">MORE></p>
				        </div>
				        </a>
						 <?php } ?>
                       				

				        <!-- piclist end -->
				      </div>
					  
					  
					  
				      <div id="SList2_1"></div>
				    </div>
				  </div>
			  <a class="RightBotton" onmousedown="SL_GoDown_1()" onmouseup="SL_StopDown_1()" onmouseout="SL_StopDown_1()" href="javascript:void(0);" target="_self">
			  <img src="IMG/zright.png" />
			  </a> 
            </div>

			<div class="aboutcon">
			<!-- 公司新闻 -->
				<div class="gsnew">
					<div class="newbtit"><span class="gsxw">News</span>
					<a href="<?php echo term(41)['url']; ?>">
					<span class="xwmore">MORE > </span>
					</a>
					</div>
					<div class="newlist">
						<ul>
						  <!-- 新闻循环 -->
						   <?php foreach (term(41)['content']['limit_6']['rec'] as $key => $value) {?>
							<li><a href=""><?php echo msubstr($value['name'],0,85,'utf-8',false); ?> &nbsp;&nbsp;[16-03-10]</a></li>
							<?php } ?>
						    <!-- 新闻循环 -->
						</ul>
					</div>
				</div>
				<!-- 公司新闻 END -->
				
				<!-- 公司简介 -->
				 <?php foreach (term(26)['content'] as $key => $value) {?>
				<div class="gsjs">
					<div class="gsjstit"><?php echo term(26)['name']; ?></div>
					<p class="abimg"><a href=""><img src="UPLOADS/<?php echo $value['cover_img']; ?>" /></a></p>
					
					<p class="abspan">
                   <!-- 公司简介描述 -->
				   <span style="font-size: 16px;">
				  
				  <?php echo msubstr($value['description'],0,140,'utf-8',true); ?> &nbsp; 
				   
				   </span>
				   
				<a href="<?php echo term(26)['url']; ?>">MORE></a>
				</p>
					</div>
				<?php } ?>
				<!-- 公司简介END -->
				
				
				
			</div>
			
			
			
			<div class="zscon">
				<div class="zstit1"><img src="IMG/sytit.png" /></div>
				<div class="zstit2">Qingyuan Genuine, Green Health</div>
				<div class="zslist">
				
				
					<ul>
					<?php foreach ($links['2'] as $key => $value) {?>
						<li><img src="UPLOADS/<?php echo $value['logo']; ?>" /></li>
					<?php } ?>
					</ul>
					
				</div>
				<div class="zsmor"> <a href="<?php echo term(28)['url']; ?>">MORE> </a></div>
			</div>
			
			
<script type="text/javascript">
        picrun_ini()
</script>
  	
			
		</div>
		
		
		
		
		<script type="text/javascript">

var Speed_1 = 30; //速度(毫秒)
var Space_1 = 20; //每次移动(px)
var PageWidth_1 = 305 * 4; //翻页宽度
var interval_1 = 6000; //翻页间隔时间
var fill_1 = 0; //整体移位
var MoveLock_1 = false;
var MoveTimeObj_1;
var MoveWay_1="right";
var Comp_1 = 0;
var AutoPlayObj_1=null;
function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else{return eval('document.all.'+objName)}}
function AutoPlay_1(){clearInterval(AutoPlayObj_1);AutoPlayObj_1=setInterval('SL_GoDown_1();SL_StopDown_1();',interval_1)}
function SL_GoUp_1(){if(MoveLock_1)return;clearInterval(AutoPlayObj_1);MoveLock_1=true;MoveWay_1="left";MoveTimeObj_1=setInterval('ISL_ScrUp_1();',Speed_1);}
function SL_StopUp_1(){if(MoveWay_1 == "right"){return};clearInterval(MoveTimeObj_1);if((GetObj('SISL_Cont_1').scrollLeft-fill_1)%PageWidth_1!=0){Comp_1=fill_1-(GetObj('SISL_Cont_1').scrollLeft%PageWidth_1);CompScr_1()}else{MoveLock_1=false}
AutoPlay_1()}
function ISL_ScrUp_1(){if(GetObj('SISL_Cont_1').scrollLeft<=0){GetObj('SISL_Cont_1').scrollLeft=GetObj('SISL_Cont_1').scrollLeft+GetObj('SList1_1').offsetWidth}
GetObj('SISL_Cont_1').scrollLeft-=Space_1}
function SL_GoDown_1(){clearInterval(MoveTimeObj_1);if(MoveLock_1)return;clearInterval(AutoPlayObj_1);MoveLock_1=true;MoveWay_1="right";ISL_ScrDown_1();MoveTimeObj_1=setInterval('ISL_ScrDown_1()',Speed_1)}
function SL_StopDown_1(){if(MoveWay_1 == "left"){return};clearInterval(MoveTimeObj_1);if(GetObj('SISL_Cont_1').scrollLeft%PageWidth_1-(fill_1>=0?fill_1:fill_1+1)!=0){Comp_1=PageWidth_1-GetObj('SISL_Cont_1').scrollLeft%PageWidth_1+fill_1;CompScr_1()}else{MoveLock_1=false}
AutoPlay_1()}
function ISL_ScrDown_1(){if(GetObj('SISL_Cont_1').scrollLeft>=GetObj('SList1_1').scrollWidth){GetObj('SISL_Cont_1').scrollLeft=GetObj('SISL_Cont_1').scrollLeft-GetObj('SList1_1').scrollWidth}
GetObj('SISL_Cont_1').scrollLeft+=Space_1}
function CompScr_1(){if(Comp_1==0){MoveLock_1=false;return}
var num,TempSpeed=Speed_1,TempSpace=Space_1;if(Math.abs(Comp_1)<PageWidth_1/2){TempSpace=Math.round(Math.abs(Comp_1/Space_1));if(TempSpace<1){TempSpace=1}}
if(Comp_1<0){if(Comp_1<-TempSpace){Comp_1+=TempSpace;num=TempSpace}else{num=-Comp_1;Comp_1=0}
GetObj('SISL_Cont_1').scrollLeft-=num;setTimeout('CompScr_1()',TempSpeed)}else{if(Comp_1>TempSpace){Comp_1-=TempSpace;num=TempSpace}else{num=Comp_1;Comp_1=0}
GetObj('SISL_Cont_1').scrollLeft+=num;setTimeout('CompScr_1()',TempSpeed)}}
function picrun_ini(){
GetObj("SList2_1").innerHTML=GetObj("SList1_1").innerHTML;
GetObj('SISL_Cont_1').scrollLeft=fill_1>=0?fill_1:GetObj('SList1_1').scrollWidth-Math.abs(fill_1);
GetObj("SISL_Cont_1").onmouseover=function(){clearInterval(AutoPlayObj_1)}
GetObj("SISL_Cont_1").onmouseout=function(){AutoPlay_1()}
AutoPlay_1();
}
</script>
		
		
        <!-- footer -->
				<footer>
			<div class="foot1">
				<p>Contact Way:<?php echo $site['contact']; ?>   E-mail: <?php echo $site['email']; ?> Fax:<?php echo $site['fax']; ?></p>
				<p>Address:<?php echo $site['code']['eaddress']; ?></p>
			
			</div>
			<div class="foot2">
				<div class="foot2con">
					<div class="fba">ICP record number：<?php echo $site['ICP']; ?></div>
					<div class="fbq">copyright: <?php echo $site['code']['ecopyright']; ?>    技术支持：<a href="http://www.wanhunet.com">万虎网络</a></div>
				</div>
			</div>
		</footer>
        <!-- footer end -->
		
		
		<div class="flot"><img src="IMG/ewm.png"></div>
		
		
	</body>
</html>

